  <?php use_helper('I18N'); ?>

<ul >
<?php foreach(sfConfig::get('app_caPropelTreePlugin_culture') as $sCulture): ?>
   <li style="display:inline" id="culture_<?php echo $sCulture ?>" class="action">
     <script type="text/javascript">
      $(document).ready(function(){
         $("#<?php echo 'culture_'.$sCulture; ?>").click(function() {
          $("#ca_pnsm_message_panel").load("<?php echo url_for('ca_change_culture',array('culture' =>  $sCulture )); ?>");
         });
      });
    </script>
    <?php echo __($sCulture) ?>
   </li>
<?php endforeach; ?>
</ul>
<?php if(sfConfig::get('app_caPropelTreePlugin_sExtensionCultureMenu')): ?>
  <?php include_partial(sfConfig::get('app_caPropelTreePlugin_sExtensionCultureMenu')); ?>
<?php endif; ?>